package tpf.designer.pattern.course5.structure_pattern2.flyweight_13.coffeeshop;

import org.apache.log4j.Logger;

public class Flavor implements Order {

    public static final Logger LOGGER = Logger.getLogger(Flavor.class);


    private String flavor;

    public Flavor(String flavor) {
        this.flavor = flavor;
    }


    @Override
    public void serve(Table table) {
        LOGGER.info("Serving table " + table.getNumber() + " with flavor " + flavor);
    }

    @Override
    public String getFlavor() {
        return this.flavor;
    }
}
